import java.io.*;
import java.math.BigInteger;
import java.util.StringTokenizer;

public class Main 
{
	public static void main(String[] args) throws Exception 
	{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		while (in.ready())
		{
			String s = in.readLine();
			StringTokenizer st = new StringTokenizer(s);
			
			BigInteger n1 = new BigInteger(st.nextToken());
			String op = st.nextToken();
			BigInteger n2 = new BigInteger(st.nextToken());
			
			BigInteger result;
			if (op.equals("/")) result = n1.divide(n2);
			else result = n1.mod(n2);
			
			System.out.println(result);
		}
	}

}
